package syncon;

import com.google.gdata.client.contacts.ContactsService;
import com.google.gdata.util.AuthenticationException;

public class SynconAuthentication {

	public SynconAuthentication(String userName, String userPassword) {
		Syncon.googleService = new ContactsService(
				"syncon");
		try {
			Syncon.googleService.setUserCredentials(userName,userPassword);
			Syncon.userName=userName;
			System.out.println("Authentication Successful");
		} catch (AuthenticationException e) {
			e.printStackTrace();
		}
	}

}
